﻿using DC2010.Objects.Info;
using DC2010.Objects.Structures;

namespace DC2010.Objects.Logic
{
    public class LevelLogic : BaseLogic
    {
        public LevelLogic(LevelData id)
        {
            Info = new LevelInfo();
            Gfx = new LevelGfx();
            Data = id;
        }

        public LevelInfo Info { get; set; }
        public LevelGfx Gfx { get; set; }
		
        public int ExperiencePointsForLevel(int i)
        {
            if (i <= 0)  return 0;

            int j = 500;
            for (int k = 1; k < i; k++)
                j *= 2;

            return j;
        }		
    }
}
